<div class="branch-action-item js-details-container" <% if queue_enabled? %>data-queue-enabled<% end %> data-merge-status="<%= stack_status %>">
  <%= render 'merge_queue_button' if queue_enabled? %>
  <div class="branch-action-item-icon completeness-indicator">
    <%= render 'anchor', color: '#bd2c00' %>
  </div>
  <h4 class="status-heading text-red">
    <% if merge_request.waiting? %>
      Will be merged shortly after the lock is removed!
    <% else %>
      Please hold off merging!
      <% if queue_enabled? %>
        Add it to the merge queue instead.
      <% end %>
    <% end %>
  </h4>
  <span class="status-meta">
    <%= link_to @stack.to_param, stack_url(@stack), target: '_blank', rel: 'noopener' %>
    is <strong>locked</strong> because: <strong><%= auto_link(emojify(@stack.lock_reason), html: { target: '_blank' }) %></strong>
  </span>
  <%= render 'commit_count_warning' if display_commit_count_warning?(params[:commits].to_i) %>
</div>
